//
//  YCContactPersonButton.m
//  YCSchool
//
//  Created by gmall on 16/5/10.
//  Copyright © 2016年 yanglinxia. All rights reserved.
//  联系界面 联系按钮

#import "YCContactPersonButton.h"

@implementation YCContactPersonButton

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    CGFloat margin = 0;
    [self.titleLabel sizeToFit];
    margin= (self.yc_width - self.imageView.yc_width - self.titleLabel.yc_width) / 3.0;
    self.titleLabel.yc_x = margin;
    self.imageView.yc_x = self.titleLabel.yc_width + 2*margin;
}

@end
